<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="generator" content="AsciiDoc 8.6.8" />
<link rel="Shortcut Icon" href="/images/favicon.ico" type="image/x-icon" />
<title></title>
<link rel="stylesheet" href="asciidoc-1.css" tppabs="http://old.peachfuzzer.com/v3/asciidoc.css" type="text/css" />
<link rel="stylesheet" href="website-1.css" tppabs="http://old.peachfuzzer.com/v3/website.css" type="text/css" />
</head>

<body>

<div id="layout-menu-box">
<div id="layout-menu">
  <div><a href="WhatIsPeach.html" tppabs="http://old.peachfuzzer.com/WhatIsPeach.html">What is Peach</a></div>
  <div><a href="Installation.html" tppabs="http://old.peachfuzzer.com/v3/Installation.html"><b>Installing</b></a></div>
  <div><a href="PeachQuickStart.html" tppabs="http://old.peachfuzzer.com/v3/PeachQuickStart.html"><b>Tutorials</b></a></div>
  <div><a href="Methodology.html" tppabs="http://old.peachfuzzer.com/Methodology.html">Methodology</a></div>
  <div><a href="Introduction.html" tppabs="http://old.peachfuzzer.com/Introduction.html">Introduction</a></div>
  <div><a href="Training.html" tppabs="http://old.peachfuzzer.com/Training.html">Training</a></div>
  <div><a href="javascript:if(confirm(%27http://www.dejavusecurity.com/peach.html  \n\nThis file was not retrieved by Teleport Ultra, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://www.dejavusecurity.com/peach.html%27" tppabs="http://www.dejavusecurity.com/peach.html">Enterprise</a></div>
  <div><a href="FAQ.html" tppabs="http://old.peachfuzzer.com/v3/FAQ.html">FAQ</a></div>
  <div><a href="javascript:if(confirm(%27http://forums.peachfuzzer.com/forum.php  \n\nThis file was not retrieved by Teleport Ultra, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://forums.peachfuzzer.com/forum.php%27" tppabs="http://forums.peachfuzzer.com/forum.php">Support Forums</a></div>

  <div><h5>Peach 3</h5></div>
  <div><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="PeachPit.html" tppabs="http://old.peachfuzzer.com/v3/PeachPit.html">Peach Pits</a></div>
  <div>&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="GeneralConfiguration.html" tppabs="http://old.peachfuzzer.com/v3/GeneralConfiguration.html">General Conf</a></div>
  <div>&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="DataModeling.html" tppabs="http://old.peachfuzzer.com/v3/DataModeling.html">Data Modeling</a></div>
  <div>&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="StateModel.html" tppabs="http://old.peachfuzzer.com/v3/StateModel.html">State Modeling</a></div>
  <div>&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="AgentsMonitors.html" tppabs="http://old.peachfuzzer.com/v3/AgentsMonitors.html">Agents</a></div>
  <div>&nbsp;&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="AgentsMonitors.html" tppabs="http://old.peachfuzzer.com/v3/AgentsMonitors.html">Monitors</a></div>
  <div>&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="TestConfig.html" tppabs="http://old.peachfuzzer.com/v3/TestConfig.html">Test</a></div>
        <div>&nbsp;&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="Publisher.html" tppabs="http://old.peachfuzzer.com/v3/Publisher.html">Publishers</a></div>
  <div>&nbsp;&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="Logger.html" tppabs="http://old.peachfuzzer.com/v3/Logger.html">Loggers</a></div>
  <!-- <div>&nbsp;<img src="/images/1.gif" /><a href="/v3/DebuggingPitFiles.html">Debugging Pits</a></div> -->
  <!-- <div>&nbsp;<img src="/images/1.gif" /><a href="/v3/ValidatingPitFiles.html">Validating Pits</a></div> -->
  <div><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="RunningPeach.html" tppabs="http://old.peachfuzzer.com/v3/RunningPeach.html">Running</a></div>
  <!-- <div><img src="/images/1.gif" /><a href="/v3/ParallelPeach.html">Parallel</a></div> -->
  <!-- <div><img src="/images/1.gif" /><a href="/v3/ExtendingPeach.html">Extending</a></div> -->
  <div><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="minset.html" tppabs="http://old.peachfuzzer.com/v3/minset.html">Minset</a></div>

  <div><h5><a href="peach23.html" tppabs="http://old.peachfuzzer.com/v2/peach23.html">Peach 2.3</a></h5></div>

  <div><hr/></div>

  <div><a href="License.html" tppabs="http://old.peachfuzzer.com/License.html">License</a></div>
</div>
</div>
<div id="layout-content-box">
<div id="layout-banner">
  <div id="layout-title">
    <a href="index.htm" tppabs="http://old.peachfuzzer.com/"><img src="peach_fuzzer.png" tppabs="http://old.peachfuzzer.com/images/peach_fuzzer.png" height="100" /></a>
    <a href="javascript:if(confirm(%27http://www.dejavusecurity.com/peach.html  \n\nThis file was not retrieved by Teleport Ultra, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://www.dejavusecurity.com/peach.html%27" tppabs="http://www.dejavusecurity.com/peach.html" class="layout-inner-banner-right">
                <img height="50" src="dejavusecurity.png" tppabs="http://old.peachfuzzer.com/images/dejavusecurity.png" /></a>
  </div>

  <div id="layout-description">
  <script>
  (function() {
    var cx = '007028538774543840348:g-0dlrdlmxs';
    var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
  })();
</script>
<gcse:search></gcse:search>
      </div>
</div>
<div id="layout-content">
<div id="content">
<div class="sect1">
<h2 id="_block">Block</h2>
<div class="sectionbody">
<div class="paragraph"><p>The Block element is a child element of <a href="DataModel.html" tppabs="http://old.peachfuzzer.com/v3/DataModel.html">DataModel</a> or Block.  Blocks are used to group one or more data elements such as <a href="Number.html" tppabs="http://old.peachfuzzer.com/v3/Number.html">Number</a> or <a href="String.html" tppabs="http://old.peachfuzzer.com/v3/String.html">String</a> together into a logical structure.  Blocks and DataModels are very similar, the only difference is their location. DataModels are a top level element, blocks are a child of <a href="DataModel.html" tppabs="http://old.peachfuzzer.com/v3/DataModel.html">DataModel</a>.  Both Block and <a href="DataModel.html" tppabs="http://old.peachfuzzer.com/v3/DataModel.html">DataModel</a> elements can be used as the "template" for other Blocks or <a href="DataModel.html" tppabs="http://old.peachfuzzer.com/v3/DataModel.html">DataModels</a>.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;Block</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HelloWorld"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello world!"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Block&gt;</span></span></tt></pre></div></div>
<div class="sect2">
<h3 id="_attributes">Attributes</h3>
<div class="paragraph"><p>All attributes are optional unless noted.</p></div>
<div class="ulist"><ul>
<li>
<p>
<a href="name.html" tppabs="http://old.peachfuzzer.com/v3/name.html">name</a>&#8201;&#8212;&#8201;Name of the block.
</p>
</li>
<li>
<p>
<a href="ref.html" tppabs="http://old.peachfuzzer.com/v3/ref.html">ref</a>&#8201;&#8212;&#8201;Reference to a [DataModel/DataModel]] to use as a template.
</p>
</li>
<li>
<p>
<a href="minOccurs.html" tppabs="http://old.peachfuzzer.com/v3/minOccurs.html">minOccurs</a>&#8201;&#8212;&#8201;The minimum number of times this block must occur.
</p>
</li>
<li>
<p>
<a href="maxOccurs.html" tppabs="http://old.peachfuzzer.com/v3/maxOccurs.html">maxOccurs</a>&#8201;&#8212;&#8201;The maximum number of times this block can occur.
</p>
</li>
<li>
<p>
<a href="mutable.html" tppabs="http://old.peachfuzzer.com/v3/mutable.html">mutable</a>&#8201;&#8212;&#8201;Is data element changeable (should it be mutated), defaults to true.
</p>
</li>
</ul></div>
</div>
<div class="sect2">
<h3 id="_valid_child_elements">Valid Child-Elements</h3>
<div class="ulist"><ul>
<li>
<p>
<a href="Blob.html" tppabs="http://old.peachfuzzer.com/v3/Blob.html">Blob</a>
</p>
</li>
<li>
<p>
<a href="Block.html" tppabs="http://old.peachfuzzer.com/v3/Block.html">Block</a>
</p>
</li>
<li>
<p>
<a href="Choice.html" tppabs="http://old.peachfuzzer.com/v3/Choice.html">Choice</a>
</p>
</li>
<li>
<p>
<a href="Custom.html" tppabs="http://old.peachfuzzer.com/v3/Custom.html">Custom</a>
</p>
</li>
<li>
<p>
<a href="Fixup.html" tppabs="http://old.peachfuzzer.com/v3/Fixup.html">Fixup</a>
</p>
</li>
<li>
<p>
<a href="Flag.html" tppabs="http://old.peachfuzzer.com/v3/Flag.html">Flag</a>
</p>
</li>
<li>
<p>
<a href="Flags.html" tppabs="http://old.peachfuzzer.com/v3/Flags.html">Flags</a>
</p>
</li>
<li>
<p>
<a href="Number.html" tppabs="http://old.peachfuzzer.com/v3/Number.html">Number</a>
</p>
</li>
<li>
<p>
<a href="Padding.html" tppabs="http://old.peachfuzzer.com/v3/Padding.html">Padding</a>
</p>
</li>
<li>
<p>
<a href="Placement.html" tppabs="http://old.peachfuzzer.com/v3/Placement.html">Placement</a>
</p>
</li>
<li>
<p>
<a href="Relation.html" tppabs="http://old.peachfuzzer.com/v3/Relation.html">Relation</a>
</p>
</li>
<li>
<p>
<a href="javascript:if(confirm(%27http://old.peachfuzzer.com/v3/Seek.html  \n\nThis file was not retrieved by Teleport Ultra, because the server reports that access to this file is forbidden.  \n\nDo you want to open it from the server?%27))window.location=%27http://old.peachfuzzer.com/v3/Seek.html%27" tppabs="http://old.peachfuzzer.com/v3/Seek.html">Seek</a>
</p>
</li>
<li>
<p>
<a href="String.html" tppabs="http://old.peachfuzzer.com/v3/String.html">String</a>
</p>
</li>
<li>
<p>
<a href="Transformer.html" tppabs="http://old.peachfuzzer.com/v3/Transformer.html">Transformer</a>
</p>
</li>
<li>
<p>
<a href="XmlAttribute.html" tppabs="http://old.peachfuzzer.com/v3/XmlAttribute.html">XmlAttribute</a>
</p>
</li>
<li>
<p>
<a href="XmlElement.html" tppabs="http://old.peachfuzzer.com/v3/XmlElement.html">XmlElement</a>
</p>
</li>
</ul></div>
</div>
<div class="sect2">
<h3 id="_examples">Examples</h3>
<div class="sect3">
<h4 id="_empty_block">Empty Block</h4>
<div class="paragraph"><p>The simplest block is an empty block. This definition will produce no output.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"BlockExample1"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
 <span style="font-weight: bold"><span style="color: #0000FF">&lt;Block&gt;</span></span>
 <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Block&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span></tt></pre></div></div>
</div>
<div class="sect3">
<h4 id="_nested_blocks">Nested Blocks</h4>
<div class="paragraph"><p>Blocks can be nested as deep as required. Blocks help create logical structure and do not change the data contained within.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"BlockExample2"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;Block&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;Block&gt;</span></span>
    <span style="font-weight: bold"><span style="color: #0000FF">&lt;Block&gt;</span></span>
      <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"1"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
    <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Block&gt;</span></span>

    <span style="font-weight: bold"><span style="color: #0000FF">&lt;Block&gt;</span></span>
      <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"2"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
    <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Block&gt;</span></span>

    <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"3"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Block&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"4"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Block&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span></tt></pre></div></div>
<div class="paragraph"><p>This nested block definition will produce the following output:</p></div>
<div class="listingblock">
<div class="content">
<pre><code>1234</code></pre>
</div></div>
</div>
<div class="sect3">
<h4 id="_naming_a_block">Naming A Block</h4>
<div class="paragraph"><p>Assign blocks a friendly name to make them easier to understand and debug.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"BlockExample2"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
 <span style="font-weight: bold"><span style="color: #0000FF">&lt;Block</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HeaderDef"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Header"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Colon"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">":"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Val"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
 <span style="font-weight: bold"><span style="color: #0000FF">&lt;Block&gt;</span></span>

 <span style="font-weight: bold"><span style="color: #0000FF">&lt;Block</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"DataDef"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
   <span style="font-weight: bold"><span style="color: #0000FF">&lt;Number</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Type"</span>  <span style="color: #009900">size</span><span style="color: #990000">=</span><span style="color: #FF0000">"8"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"4"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
   <span style="font-weight: bold"><span style="color: #0000FF">&lt;Number</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Data"</span> <span style="color: #009900">size</span><span style="color: #990000">=</span><span style="color: #FF0000">"8"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"32"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
 <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Block&gt;</span></span>
 <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span></tt></pre></div></div>
</div>
<div class="sect3">
<h4 id="_referencing_a_block">Referencing A Block</h4>
<div class="paragraph"><p>A reference (ref attribute) supplied the contents of the reference are copied to create the base of the new Block.  Any child elements in the Block will override elements that already exist with the same name.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"OtherDataModel"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
   <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
 <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

 <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"ThisDataModel"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
    <span style="font-weight: bold"><span style="color: #0000FF">&lt;Block</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"MyName"</span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"OtherDataModel"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
 <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span></tt></pre></div></div>
<div class="paragraph"><p>The Block "MyName" will be overwritten with the referenced block "OtherDataModel". When parsed it&#8217;s data structure will look like this.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt> <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"ThisDataModel"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
   <span style="font-weight: bold"><span style="color: #0000FF">&lt;Block</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"MyName"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
    <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
   <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Block&gt;</span></span>
 <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span></tt></pre></div></div>
<div class="paragraph"><p>Referencing allows for powerful templates to be built. This is a template for a Key: Value\r\n.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Template"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Key"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">": "</span> <span style="color: #009900">token</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Value"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"\r\n"</span> <span style="color: #009900">token</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span></tt></pre></div></div>
<div class="paragraph"><p>To use this template as a reference.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"OtherModel"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Before Block\r\n"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

  <span style="font-weight: bold"><span style="color: #0000FF">&lt;Block</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Customized"</span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"Template"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
    <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Key"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Content-Length"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
    <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Value"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"55"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Block&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span></tt></pre></div></div>
<div class="paragraph"><p>The output will be</p></div>
<div class="listingblock">
<div class="content">
<pre><code> Before Block\r\n
 Content-Length: 55\r\n</code></pre>
</div></div>
<div class="paragraph"><p>Two key things happened here. When parsed the Customized Block will replace it&#8217;s structure with the DataModel of Template. Adding the string values of ":" and "\r\n".</p></div>
<div class="paragraph"><p>At the same time the "Customized" block overwrote the values of the String elements for Key and Value. Replacing them with "Content-Length" and 55. The final DataModel would be parsed as so.</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"OtherModel"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"BeforeBlock"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

  <span style="font-weight: bold"><span style="color: #0000FF">&lt;Block</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Customized"</span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"Template"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
    <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Key"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Content-Length"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
    <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">": "</span> <span style="color: #009900">token</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
    <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Value"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"55"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
    <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"\r\n"</span> <span style="color: #009900">token</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
  <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Block&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span></tt></pre></div></div>
</div>
</div>
</div>
</div>
</div>
<div id="footnotes"></div>
<div id="footer">
<div id="footer-text">

<table width="100%">
<td><td>
<a href="javascript:if(confirm(%27http://dejavusecurity.com/  \n\nThis file was not retrieved by Teleport Ultra, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://dejavusecurity.com/%27" tppabs="http://dejavusecurity.com/"><img src="dejavusecurity.png" tppabs="http://old.peachfuzzer.com/images/dejavusecurity.png" height="50"/></a>
</td><td>&nbsp;&nbsp;&nbsp;</td><td>

Copyright (c) <a href="javascript:if(confirm(%27http://dejavusecurity.com/  \n\nThis file was not retrieved by Teleport Ultra, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://dejavusecurity.com/%27" tppabs="http://dejavusecurity.com/">Deja vu Security</a> <br/>
Last updated 2014-02-23 21:23:42 PST
</td>
</table>

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1094513-10']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www/') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</div>
</div>
</div>
</div>
</body>
</html>
